package com.yusys.single;

/**
 * 懒汉式单例模式
 */
public class Dog {

    private static Dog dog;

    public static Dog getInstance() {
        if (dog == null) {
            dog = new Dog();
        }
        return dog;
    }
}
